#ifndef _FRAMEBUFFER_H_
#define _FRAMEBUFFER_H_

#include "../shapes.h"
#include "ForwardDeclarations.h"
#include "viewport.h"

class CFrameBufferObject
{
private:
	unsigned int _fbID;
	unsigned int _depth_rbID;
	unsigned int _texID;

	CViewport _vp;

	void _init();

public:
	CFrameBufferObject(const SRect & rect);
	~CFrameBufferObject(){};
	void enable();
	void release();
	inline const unsigned int & getTexture() const {return _texID;}
	inline const CViewport & getViewport() const {return _vp;}
};
#endif // _FRAMEBUFFER_H_